<table>
 	<tbody>
 	<if condition="empty($user_miner_info) eq true">
 		<tr data-id="0">
	        <td class="no-data" align="center" axis="col0" colspan="50">
	        	<i class="fa fa-exclamation-circle"></i>没有符合条件的记录
	        </td>
	     </tr>
	<else/>
 	<volist name="user_miner_info" id="list">
  	<tr data-order-id="{$list.order_id}" id="{$list.order_id}">
        <td class="sign" axis="col0">
          <div style="width: 24px;"><i class="ico-check"></i></div>
        </td>
        <td align="left" abbr="order_sn" axis="col3" class="">
          <div style="text-align: center; width: 50px;" class=""><a href="{:url('chuangeTime', ['id' => $list['id']])}">{$list.id}</a></div>
        </td>
        <td align="left" abbr="order_sn" axis="col3" class="">
            <div style="text-align: center; width: 120px;" class="">{$list.sn}</div>
        </td>
        <td align="left" abbr="consignee" axis="col4" class="">
          <div style="text-align: center; width: 50px;" class=""><a href="/index.php/Admin/World.Miner/detail/id/{$list.user_id}">{$list.user_id}</a></div>
        </td>
        <td align="left" abbr="consignee" axis="col4" class="">
            <div style="text-align: center; width: 100px;" class="">{$list.account}</div>
        </td>
        <td align="left" abbr="consignee" axis="col4" class="">
            <div style="text-align: center; width: 120px;" class="">{$list.nickname}</div>
        </td>
        <td align="left" abbr="consignee" axis="col4" class="">
          <div style="text-align: center; width: 50px;" class=""><a href="/index.php/Admin/World.Miner/detail/id/{$list.to_user_id}">{$list.to_user_id}</a></div>
        </td>
        <td align="left" abbr="consignee" axis="col4" class="">
            <div style="text-align: center; width: 70px;" class="">{$list.miner_name}</div>
        </td>
        <td align="left" abbr="consignee" axis="col4" class="">
            <div style="text-align: center; width: 70px;" class="">{$list.user_miner_id}</div>
        </td>
        <td align="left" abbr="consignee" axis="col4" class="">
            <div style="text-align: center; width: 50px;" class="">{$list.recommend_number}</div>
        </td>
        <td align="left" abbr="consignee" axis="col4" class="">
            <div style="text-align: center; width: 50px;" class="">{$list.team}</div>
        </td>
       
        <td align="center" abbr="article_time" axis="col6" class="">
          <div style="text-align: center; width: 120px;" class="">{$list.add_time|date='Y-m-d H:i',###}</div>
        </td>
       
		<td style="width: 100%;">
          <div></div>
        </td>
      </tr>
      </volist>
      </if>
    </tbody>
</table>
<div class="row">
    <div class="col-sm-6 text-left"></div>
    <div class="col-sm-6 text-right">{$page}</div>
</div>
<script>
    $(".pagination  a").click(function(){
        var page = $(this).data('p');
        ajax_get_table('search-form2',page);
    });
    
 // 删除操作
    function del(obj) {
        layer.confirm('确定要删除吗?', function(){
            var id=$(obj).data('order-id');
            $.ajax({
                type : "POST",
                url: "{:U('Admin/Order.MiniOrder/delete_order')}",
                data:{order_id:id},
                dataType:'json',
                async:false,
                success: function(data){
                    if(data.status ==1){
                        layer.alert(data.msg, {icon: 1});
                        $('#'+id).remove();
                    }else{
                        layer.alert(data.msg, {icon: 2});
                    }
                },
                error:function(){
                    layer.alert('网络异常，请稍后重试',{icon: 2});
                }
            });
		});
	}
    
    $('.ftitle>h5').empty().html("(共{$pager->totalRows}条记录)");
</script>